<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-carchangelog-edit" th:object="${tbSimCarchangelog}">
            <input name="logid" th:field="*{logid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">外键：</label>
                <div class="col-sm-8">
                    <input name="viid" th:field="*{viid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="carCode" th:field="*{carCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆VIN：</label>
                <div class="col-sm-8">
                    <input name="carVin" th:field="*{carVin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆登记状态：</label>
                <div class="col-sm-8">
                    <input name="logcarstate" th:field="*{logcarstate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">原ICCID：</label>
                <div class="col-sm-8">
                    <input name="logoriginaliccid" th:field="*{logoriginaliccid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">当前ICCID：</label>
                <div class="col-sm-8">
                    <input name="logpresenticcid" th:field="*{logpresenticcid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">变更时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="logchangetime" th:value="${#dates.format(tbSimCarchangelog.logchangetime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/carchangelog";
        $("#form-carchangelog-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-carchangelog-edit').serialize());
            }
        }

        $("input[name='logchangetime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>